package org.paradise.dms.web.action.changePassword;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpSession;

import net.sf.json.JSONObject;

import org.apache.log4j.Logger;
import org.apache.struts2.ServletActionContext;
import org.directwebremoting.annotations.RemoteProxy;
import org.paradise.dms.pojo.SystemUser;
import org.paradise.dms.pojo.SystemUserGroup;
import org.paradise.dms.pojo.SystemUserGroupRole;
import org.paradise.dms.services.AuthenticateService;
import org.paradise.dms.services.impl.ChangePasswordServiceImpl;
import org.paradise.dms.web.action.DMSBaseAction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
@Service
@RemoteProxy(name = "changePwdAction")
public class ChangePwdAction extends DMSBaseAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3367634007408669452L;

	private static Logger log = Logger.getLogger(ChangePwdAction.class);
	
	@Autowired
	private ChangePasswordServiceImpl changePasswordServiceImpl;
	
	public ChangePasswordServiceImpl getChangePasswordServiceImpl() {
		return changePasswordServiceImpl;
	}
	public void setChangePasswordServiceImpl(ChangePasswordServiceImpl changePasswordServiceImpl) {
		this.changePasswordServiceImpl = changePasswordServiceImpl;
	}
	
	/**
	 * 
	 * Description: 修改密码
	 * @Version1.0 Oct 25, 2009 6:02:36 PM 郑旭（zhengxu2006@gmail.com）创建
	 * @param oldPwd
	 * @param newPwd
	 * @param uid
	 * @return
	 */
	public String changePwd(String oldPwd,String newPwd ,int uid){
		return changePasswordServiceImpl.changePwd(oldPwd,newPwd,uid);
	}


}
